#include "thread.hpp"


class threaddata
{};


void Count(int max)
{
    for(int  i = 0;i < max;i++)
    {
        cout<<"i == "<<i<<endl;
        sleep(1);
    }
}

int main()
{
    ThreadModle::Thread<int> t(Count,10);
    //进程启动
    t.Start();

    //等待进程退出
    t.Join();
    return 0;
}
